#include<stdio.h>
void main()
{
	int i, ge, shi, bai;
	for (i = 100; i <= 999; i++)
	{
		ge = i % 10;
		shi = i / 10 % 10;
		bai = i / 100;
		if (bai * 1 + shi * 10 + ge * 100 == i)
			printf(" %d ", i);
	}
}